package cn.jucheng.www.yizhudan.view;

import android.os.Bundle;
import android.os.Message;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;

import cn.jucheng.www.yizhudan.MyBaseActivity;
import cn.jucheng.www.yizhudan.R;
import cn.jucheng.www.yizhudan.customcontrols.FitHeightButton;

/**
 * Created by w on 2017-11-22.
 * 药物信息弹出框
 */

public class DrugActivity extends MyBaseActivity implements View.OnClickListener {

    private TextView titleTxt;
    FitHeightButton yw_ok;
    private String ywName;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_ywmessage);
        initView();
    }

    private void initView() {

        titleTxt = (TextView) findViewById(R.id.yw_name);
        yw_ok = (FitHeightButton) findViewById(R.id.yw_ok);
        yw_ok.setOnClickListener(this);

        ywName = getIntent().getStringExtra("ywName");

        if (!TextUtils.isEmpty(ywName)) {
            titleTxt.setText(ywName);
        }

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.yw_ok:
                finish();
                break;
        }
    }

    @Override
    protected void HandlerMessage(Message msg) {

    }

    @Override
    public void exc() {

    }

}
